<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{@$pageTitle@}</title>
{#include file="Public:head" /#}
</head>
<body id="mainBody">
<div id="all">
  {#rabbet id="tips" /#}
  <div class="box3 w pr">
    <div class="box3_wrap">
      <div class="box3_top">
        <h4 class="pl10 fb">管理员管理</h4>
        <div class="funcBox">
          <input type="button" value="添加管理员" onclick="location.replace('admin.php?m=admin&a=adminadd&url={@$activeUrl@}');" class="btn1" />
        </div>
      </div>
      <div class="box3_main">
        <form action="" name="editForm" method="post">
          <table class="table3 w rowPoint">
            <thead>
            <tr class="fb">
              <th width="80">ID</th>
              <th width="120" class="tl">管理员</th>
              <th width="80">账号状态</th>
              <th width="120">管理组</th>
              <th width="130">最后登录时间</th>
              <th width="80">登录次数</th>
              <th width="200" class="tl">操作</th>
              <th></th>
            </tr>
            </thead>
            <tbody>
            {#volist name="list" id="data"#}
            <tr>
              <td class="tc">{@$data.id@}</td>
              <td>{@$data.admin_name@}</td>
              <td class="tc">
                {#in name="data.id" value="$sysDataId"#}<span class="f-red">内置</span>{#else/#}
                {#eq name="data.status" value="1"#}<span class="f-green">启用</span>{#else/#}<span class="f-red">禁用</span>{#/eq#}
                {#/in#}
              </td>
              <td class="tc">{@$data.group_name@}</td>
              <td class="tc">{#notempty name="data.last_login_time"#}{@$data.last_login_time|date="Y-m-d H:i:s",###@}{#else/#}-{#/notempty#}</td>
              <td class="tc">{@$data.login_times@}</td>
              <td><a href="admin.php?m=admin&a=adminedit&id={@$data.id@}&url={@$activeUrl@}">编辑管理员</a>
                {#notin name="data.id" value="$sysDataId"#}| <a href="admin.php?m=admin&a=admindelete&id={@$data.id@}&url={@$activeUrl@}" onclick="return confirm('确认要执行删除操作吗？继续，将删除该管理员。');">删除管理员</a>{#/notin#}</td>
              <td></td>
            </tr>
            {#/volist#}
            </tbody>
          </table>
          <div class="page1 fr">{@$page@}</div>
          <div class="cb"></div>
        </form>
      </div>
    </div>
    <div class="box3_lt pa"></div>
    <div class="box3_rt pa"></div>
  </div>
</div>
</body>
</html>
